package com.sskj.aikeeper.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.aikeeper.hangqing.activity.CertificationUploadActivity;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;

import java.io.File;

/**
 * @author Hey
 * Create at  2019/06/25
 */
public class CertificationUploadPresenter extends BasePresenter<CertificationUploadActivity> {

    public void setRenZheng(String realname, String idCard, File handImg, File fontImg, File backImg) {
        httpService.setRenzheng(realname, idCard, handImg, fontImg, backImg)
                .tag(this)
                .execute(new JsonCallBack<HttpData>(this) {
                    @Override
                    public void onSuccess(Response<HttpData> response) {
                        mView.finish();
                    }
                });

    }
}
